package com.demo.inpiutkeyboard;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.demo.inpiutkeyboard.util.EmotionKeyboard;

public class MainActivity extends AppCompatActivity {


    private Button mPlusBtn;
    private EditText mInputEt;
    private View mExtView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mPlusBtn = findViewById(R.id.plusBtn);
        mInputEt = findViewById(R.id.inputEt);
        mExtView = findViewById(R.id.extView);
        EmotionKeyboard.with(this).bindToEditText(mInputEt).bindToEmotionButton(mPlusBtn).setEmotionView(mExtView).bindToContent(mExtView).build();

//        mPlusBtn.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                mExtView.setVisibility(View.VISIBLE);
//            }
//        });
    }
}
